<template>
  <div class="folder-selector">
    <div class="welcome-content">
      <div class="welcome-icon">📁</div>
      <h2>欢迎使用 Photo Viewer</h2>
      <p>选择一个包含图片的文件夹开始浏览</p>
      <button @click="$emit('select-folder')" class="select-folder-btn">
        选择文件夹
      </button>
    </div>
  </div>
</template>

<script>
export default {
  name: 'FolderSelector',
  emits: ['select-folder']
};
</script>

<style scoped>
.folder-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.welcome-content {
  text-align: center;
  background: white;
  padding: 48px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  max-width: 400px;
}

.welcome-icon {
  font-size: 64px;
  margin-bottom: 24px;
}

.welcome-content h2 {
  font-size: 28px;
  font-weight: 500;
  color: #333;
  margin-bottom: 16px;
}

.welcome-content p {
  color: #666;
  margin-bottom: 32px;
  line-height: 1.5;
}

.select-folder-btn {
  background: #4285f4;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
}

.select-folder-btn:hover {
  background: #3367d6;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.4);
}
</style>
